/*
 *  Copyright 2015-2016, RenGu Technology (BeiJing) Co., Ltd.
 *  All right reserved.
 *
 *  THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF RENGU TECHNOLOGY (BeiJing) CO., LTD.
 *
 *  THE CONTENTS OF THIS FILE MAY NOT BE DISCLOSED TO THIR PARTIES,
 *  COPIED OR DUPLICATED IN ANY FORM, IN WHOLE OR IN PART,
 *  WITHOUT THE PRIOR WRITTEN PERMISSION OF RENGU TECHNOLOGY (BeiJing) CO., LTD.
 *
 *  OpmsParam.java
 *
 *  Edit History:
 *  	2016年9月5日 - Created by pengpeng
 *
 */
package cc.rengu.igas.channel.nucc.common.constant;

/**
 * 应用公共常量类
 * Created by 王成 on 2018/5/31.
 */
public class NuccParamConstant {
    public static final String OPM_SYS_ID = "OPMS";
    public static final String MCP_SYS_ID = "MCPS";
    public static final String IAPS_SYS_ID = "IAPS";
    public static final String IGAS_SYS_ID = "IGAS";
    public static final String BSPS_SYS_ID = "BSPS";
    public static final String EPSP_SYS_ID = "CFPS";
    /**
     * 银联二维码专业化
     */
    public static final String UPQC_SYS_ID = "QPQCPROC";


    /**
     * mac block域配置文件缓存
     */
    public static final String CACHE_POS_8583_MAC = "CACHE_POS_8583_MAC";
    /**
     * POS报文8583解析工具类缓存
     */
    public static final String CACHE_POS_8583_DECODE = "CACHE_POS_8583_DECODE";
    /**
     * POS报文8583编码工具类缓存
     */
    public static final String CACHE_POS_8583_ENCODE = "CACHE_POS_8583_ENCODE";

    /**
     * 通道ID
     */
    public static final String TUNL_ID_NUCC = "NUCC";//网联支付清算平台
    public static final String TUNL_ID_NUCC_ISS = "NUCCISS";//网联支付清算平台
    public static final String TUNL_ID_CUPS = "CUPS";
    public static final String TUNL_ID_NCQS = "NCQS"; //银联无卡快捷支付平台
    /**
     * 开关标志
     */
    public static final String YES = "Y";
    public static final String NO = "N";

    /**
     * 默认机构常量
     */
    //public static final String DEFAULT_INSTID = "00000000000000";
    public static final String DEFAULT_INSTID = "801";
    /**
     * 默认交易细分
     */
    public static final String DEFAULT_BIZ_TYPE = "00";
    /**
     * 默认发卡机构标识
     */
    public static final String DEFAULT_ISSUER_CODE = "00000000";
    /**
     * 默认失效日期
     */
    public static final String DEFAULT_EXPIRY_DATE = "29991231";
    /**
     * 默认字符串分隔符
     */
    public static final String DEFAULT_DELIMITER = ",";
    /**
     * 默认0
     */
    public static final String STRING_DEFAULT_ZERO = "0";
    /**
     * 默认1
     */
    public static final String STRING_DEFAULT_ONE = "1";
    /**
     * SUCCESS
     */
    public static final String STRING_SUCCESS = "SUCCESS";
    /**
     * AILPAY_SUCCESS_CODE
     */
    public static final String AILPAY_SUCCESS_CODE = "10000";
    /**
     * EPCC_SUCCESS_CODE
     */
    public static final String EPCC_SUCCESS_CODE = "00000000";
    /**
     * UPAC_SUCCESS_CODE
     */
    public static final String UPAC_SUCCESS_CODE = "00";
    /**
     * 返回订单列表最大条数
     */
    public static final int MAX_ORDER_LIST_NUM = 5;
    /**
     * NCQS_SUCCESS_CODE
     */
    public static final String NCQS_SUCCESS_CODE = "00000000";
    /**
     * 接收方超时
     */
    public static final String EPCC_TIME_OUT_CODE = "ES000033";
    /**
     * 连接故障
     */
    public static final String EPCC_CONNECT_ERROR_CODE = "ES000032";

    /**
     * XML树默认节点
     */
    public static final String XML_ROOT_NAME = "radp";

    /**
     * 默认流水号前缀
     */
    public static final String PREFIX_SEQ_STRING = "TRACE";

    /**
     * 版本号
     */
    public static final String VERSION = "1.0.0";

    /**
     * 商户服务参数类型
     */
    public static final String MCHNT_PARAM_TYPE = "MCHNT_SERVICE";
    /**
     * 商户推送开关标识
     */
    public static final String MCHNT_PUSH_MSG_FLAG = "MCHNT_PUSH_MSG_FLAG";
    /**
     * 交易推送总开关
     */
    public static final String MSG_PUSH_FLAG = "MSG_PUSH_FLAG";
    /**
     * 交易推送开关标识
     */
    public static final String TXN_PUSH_LIST_PARAM = "TXN_PUSH_LIST_PARAM";
    /**
     * 交易推送类型模式
     */
    public static final String TXN_TYPE_PUSH_PARAM = "TXN_TYPE_PUSH_PARAM";
    /**
     * 银行机构
     */
    public static final String ISS_INST_CODE = "ISS_INST_CODE";
    /**
     * 网联消息类型
     */
    public static final String EPCC_IN_MSG_TP = "EPCC_IN_MSG_TP";
    /**
     * 网联消息类型
     */
    public static final String EPCC_OUT_MSG_TP = "EPCC_OUT_MSG_TP";
    /**
     * 网联idc列表缓存
     */
    public static final String NUCC_IDC_CAC = "NUCC_IDC_CAC";
    /**
     * 网联流水号控制位列表缓存
     */
    public static final String EPCC_CTRL_NB_CAC = "EPCC_CTRL_NB_CAC";
    /**
     * 网联机构编码
     */
    public static final String EPCC_DEFAULT_INSTID = "00000000000000";

    /**
     * 短信验证码有效时间
     */
    public static final int DEFAULT_EFFECTIVE_TIME = 300;
    /**
     * 短信验证码默认最大验证次数
     */
    public static final int DEFAULT_VERIFY_TIME = 3;
    /**
     * 支付有效时间 -5分钟
     */
    public static final int DEFAULT_PAYMENT_VALID_TIME = 300;

    /**
     * 手续费字段
     */
    public static final String FEE_JSON_KEY = "fee";
    public static final String LADDER_JSON_KEY = "ladder";
    public static final String TRANS_MAX_JSON_KEY = "transMax";
    public static final String TRANS_AMT_JSON_KEY = "transAmt";
    public static final String TOTAL_AMT_JSON_KEY = "totalAmt";
    /************* 智能路由配置相关缓存 ****************/
    /**
     * 交易路由配置缓存
     */
    public static final String CACHE_ROUTE_CFG = "CACHE_ROUTE_CFG";
    /**
     * 智能路由配置缓存
     */
    public static final String CACHE_ROUTE_CFG_SMART = "CACHE_ROUTE_CFG_SMART";
    /**
     * 账户类型缓存
     */
    public static final String CACHE_ROUTE_CFG_ACCT_SPT = "CACHE_ROUTE_CFG_ACCT_SPT";
    /**
     * 业务控制缓存
     */
    public static final String CACHE_ROUTE_CFG_BIZ_CTRL = "CACHE_ROUTE_CFG_BIZ_CTRL";
    /**
     * 手续费配置缓存
     */
    public static final String CACHE_ROUTE_CFG_BIZ_FEE = "CACHE_ROUTE_CFG_BIZ_FEE";
    /**
     * 通道配置缓存
     */
    public static final String CACHE_ROUTE_CFG_TUNL = "CACHE_ROUTE_CFG_TUNL";
    /**
     * 多路比例路由缓存
     */
    public static final String CACHE_ROUTE_CFG_MULTI = "CACHE_ROUTE_CFG_MULTI";
    /**
     * 多路比例路由动态缓存
     */
    public static final String CACHE_ROUTE_CFG_MULTI_DYNAMIC = "CACHE_ROUTE_CFG_MULTI_DYNAMIC";
    /**
     * 通道动态信息缓存
     */
    public static final String CACHE_ROUTE_CFG_TUNL_DYNAMIC = "CACHE_ROUTE_CFG_TUNL_DYNAMIC";
    /**
     * 通道交易信息缓存
     */
    public static final String CACHE_ROUTE_TUNL_TXN = "CACHE_ROUTE_TUNL_TXN";
    /**
     * 固定手续费缓存
     */
    public static final String CACHE_FEE_FIXED_A_TXN = "CACHE_FEE_FIXED_A_TXN";
    /**
     * 比例手续费缓存
     */
    public static final String CACHE_FEE_FIXED_RATE_AMT = "CACHE_FEE_FIXED_RATE_AMT";
    /**
     * 多路比例手续费缓存
     */
    public static final String CACHE_FEE_LADDER_RATE_AMT = "CACHE_FEE_LADDER_RATE_AMT";
    public static final String CACHE_FEE_LADDER_RATE_TOTAL_AMT = "CACHE_FEE_LADDER_RATE_TOTAL_AMT";
    /**
     * 智能路由服务时间配置缓存
     */
    public static final String CACHE_ROUTE_SVC_TM = "CACHE_ROUTE_SVC_TM";
    public static final String CACHE_CUPS_SN = "CUPS_SN_CACHE";

    public static String TMK_KEY_TYPE = "KA00";
    public static String PIN_KEY_TYPE = "KA02";
    public static String MAC_KEY_TYPE = "KA03";
    public static String SIGN_CERT_TYPE = "CE00";
    public static String ENCRYPT_CERT_TYPE = "CE01";
    public static String VERIFY_CERT_TYPE = "CD00";
    public static String DECRYPT_CERT_TYPE = "CD01";
    /**
     * cups参数
     */
    public static final String CUPS_PARAM_TYPE = "CUPS_PARAM";
    /**
     * cups清算日期参数
     */
    public static final String CUPS_SETTLE_DATE_PARAM_TYPE = "CUPS_SETTLE_DATE";

    /**
     * 网联-商业委托-0206-快捷签约
     */
    public static final String EPCC_TRX_TYPE_0206 = "0206";
    /**
     * 网联-商业委托-0203-网关
     */
    public static final String EPCC_TRX_TYPE_0203 = "0203";
    /**
     * 网联-商业委托-0205-快捷认证
     */
    public static final String EPCC_TRX_TYPE_0205 = "0205";
    /**
     * 网联-商业委托-0204-线下
     */
    public static final String EPCC_TRX_TYPE_0204 = "0204";
}
